Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(apply, f_1), x) → app(f_1, x)
app(id, x) → x
app(app(app(uncurry, f_2), x), y) → app(app(f_2, x), y)
app(app(app(swap, f_2), y), x) → app(app(f_2, x), y)
app(app(app(compose, g_1), f_1), x) → app(g_1, app(f_1, x))
app(app(const, x), y) → x
app(listify, x) → app(app(cons, x), nil)
app(app(app(app(fold, f_3), g_2), x), nil) → x
app(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → app(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
app(sum, l) → app(app(app(app(fold, add), id), 0), l)
app(app(uncurry, app(app(fold, cons), id)), nil) → id
appendapp(app(compose, app(app(swap, fold), cons)), id)
reverseapp(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
lengthapp(app(uncurry, app(app(fold, add), app(cons, 1))), 0)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

app(app(apply, f_1), x) → app(f_1, x)
app(id, x) → x
app(app(app(uncurry, f_2), x), y) → app(app(f_2, x), y)
app(app(app(swap, f_2), y), x) → app(app(f_2, x), y)
app(app(app(compose, g_1), f_1), x) → app(g_1, app(f_1, x))
app(app(const, x), y) → x
app(listify, x) → app(app(cons, x), nil)
app(app(app(app(fold, f_3), g_2), x), nil) → x
app(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → app(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
app(sum, l) → app(app(app(app(fold, add), id), 0), l)
app(app(uncurry, app(app(fold, cons), id)), nil) → id
appendapp(app(compose, app(app(swap, fold), cons)), id)
reverseapp(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
lengthapp(app(uncurry, app(app(fold, add), app(cons, 1))), 0)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
APPENDAPP(compose, app(app(swap, fold), cons))
APP(sum, l) → APP(fold, add)
LENGTHAPP(uncurry, app(app(fold, add), app(cons, 1)))
REVERSEAPPEND
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(g_2, z)
APP(app(app(uncurry, f_2), x), y) → APP(app(f_2, x), y)
REVERSEAPP(fold, app(swap, append))
APP(app(app(swap, f_2), y), x) → APP(f_2, x)
APP(sum, l) → APP(app(app(app(fold, add), id), 0), l)
APP(app(app(compose, g_1), f_1), x) → APP(g_1, app(f_1, x))
APP(sum, l) → APP(app(app(fold, add), id), 0)
APP(app(app(compose, g_1), f_1), x) → APP(f_1, x)
APPENDAPP(swap, fold)
REVERSEAPP(swap, append)
REVERSEAPP(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
APP(app(app(swap, f_2), y), x) → APP(app(f_2, x), y)
APPENDAPP(app(swap, fold), cons)
APP(listify, x) → APP(cons, x)
LENGTHAPP(app(fold, add), app(cons, 1))
APP(app(apply, f_1), x) → APP(f_1, x)
APP(app(app(uncurry, f_2), x), y) → APP(f_2, x)
REVERSEAPP(app(fold, app(swap, append)), listify)
APP(sum, l) → APP(app(fold, add), id)
LENGTHAPP(app(uncurry, app(app(fold, add), app(cons, 1))), 0)
REVERSEAPP(uncurry, app(app(fold, app(swap, append)), listify))
LENGTHAPP(fold, add)
APP(listify, x) → APP(app(cons, x), nil)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(app(app(fold, f_3), g_2), x), t)
APPENDAPP(app(compose, app(app(swap, fold), cons)), id)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(f_3, app(g_2, z))
LENGTHAPP(cons, 1)

The TRS R consists of the following rules:

app(app(apply, f_1), x) → app(f_1, x)
app(id, x) → x
app(app(app(uncurry, f_2), x), y) → app(app(f_2, x), y)
app(app(app(swap, f_2), y), x) → app(app(f_2, x), y)
app(app(app(compose, g_1), f_1), x) → app(g_1, app(f_1, x))
app(app(const, x), y) → x
app(listify, x) → app(app(cons, x), nil)
app(app(app(app(fold, f_3), g_2), x), nil) → x
app(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → app(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
app(sum, l) → app(app(app(app(fold, add), id), 0), l)
app(app(uncurry, app(app(fold, cons), id)), nil) → id
appendapp(app(compose, app(app(swap, fold), cons)), id)
reverseapp(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
lengthapp(app(uncurry, app(app(fold, add), app(cons, 1))), 0)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
APPENDAPP(compose, app(app(swap, fold), cons))
APP(sum, l) → APP(fold, add)
LENGTHAPP(uncurry, app(app(fold, add), app(cons, 1)))
REVERSEAPPEND
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(g_2, z)
APP(app(app(uncurry, f_2), x), y) → APP(app(f_2, x), y)
REVERSEAPP(fold, app(swap, append))
APP(app(app(swap, f_2), y), x) → APP(f_2, x)
APP(sum, l) → APP(app(app(app(fold, add), id), 0), l)
APP(app(app(compose, g_1), f_1), x) → APP(g_1, app(f_1, x))
APP(sum, l) → APP(app(app(fold, add), id), 0)
APP(app(app(compose, g_1), f_1), x) → APP(f_1, x)
APPENDAPP(swap, fold)
REVERSEAPP(swap, append)
REVERSEAPP(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
APP(app(app(swap, f_2), y), x) → APP(app(f_2, x), y)
APPENDAPP(app(swap, fold), cons)
APP(listify, x) → APP(cons, x)
LENGTHAPP(app(fold, add), app(cons, 1))
APP(app(apply, f_1), x) → APP(f_1, x)
APP(app(app(uncurry, f_2), x), y) → APP(f_2, x)
REVERSEAPP(app(fold, app(swap, append)), listify)
APP(sum, l) → APP(app(fold, add), id)
LENGTHAPP(app(uncurry, app(app(fold, add), app(cons, 1))), 0)
REVERSEAPP(uncurry, app(app(fold, app(swap, append)), listify))
LENGTHAPP(fold, add)
APP(listify, x) → APP(app(cons, x), nil)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(app(app(fold, f_3), g_2), x), t)
APPENDAPP(app(compose, app(app(swap, fold), cons)), id)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(f_3, app(g_2, z))
LENGTHAPP(cons, 1)

The TRS R consists of the following rules:

app(app(apply, f_1), x) → app(f_1, x)
app(id, x) → x
app(app(app(uncurry, f_2), x), y) → app(app(f_2, x), y)
app(app(app(swap, f_2), y), x) → app(app(f_2, x), y)
app(app(app(compose, g_1), f_1), x) → app(g_1, app(f_1, x))
app(app(const, x), y) → x
app(listify, x) → app(app(cons, x), nil)
app(app(app(app(fold, f_3), g_2), x), nil) → x
app(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → app(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
app(sum, l) → app(app(app(app(fold, add), id), 0), l)
app(app(uncurry, app(app(fold, cons), id)), nil) → id
appendapp(app(compose, app(app(swap, fold), cons)), id)
reverseapp(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
lengthapp(app(uncurry, app(app(fold, add), app(cons, 1))), 0)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 20 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
QDP

Q DP problem:
The TRS P consists of the following rules:

APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
APP(app(apply, f_1), x) → APP(f_1, x)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(g_2, z)
APP(app(app(uncurry, f_2), x), y) → APP(app(f_2, x), y)
APP(sum, l) → APP(app(app(app(fold, add), id), 0), l)
APP(app(app(swap, f_2), y), x) → APP(f_2, x)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(app(app(app(fold, f_3), g_2), x), t)
APP(app(app(compose, g_1), f_1), x) → APP(g_1, app(f_1, x))
APP(app(app(swap, f_2), y), x) → APP(app(f_2, x), y)
APP(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → APP(f_3, app(g_2, z))
APP(app(app(uncurry, f_2), x), y) → APP(f_2, x)
APP(app(app(compose, g_1), f_1), x) → APP(f_1, x)

The TRS R consists of the following rules:

app(app(apply, f_1), x) → app(f_1, x)
app(id, x) → x
app(app(app(uncurry, f_2), x), y) → app(app(f_2, x), y)
app(app(app(swap, f_2), y), x) → app(app(f_2, x), y)
app(app(app(compose, g_1), f_1), x) → app(g_1, app(f_1, x))
app(app(const, x), y) → x
app(listify, x) → app(app(cons, x), nil)
app(app(app(app(fold, f_3), g_2), x), nil) → x
app(app(app(app(fold, f_3), g_2), x), app(app(cons, z), t)) → app(app(f_3, app(g_2, z)), app(app(app(app(fold, f_3), g_2), x), t))
app(sum, l) → app(app(app(app(fold, add), id), 0), l)
app(app(uncurry, app(app(fold, cons), id)), nil) → id
appendapp(app(compose, app(app(swap, fold), cons)), id)
reverseapp(app(uncurry, app(app(fold, app(swap, append)), listify)), nil)
lengthapp(app(uncurry, app(app(fold, add), app(cons, 1))), 0)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.